var UserSelect = function(){
	var isAlreadyInit = false;
	return{
		
		
		
		
		openSelectDialog:function(){
			
			if(isAlreadyInit == false){
				
				SysDepartmentController.getDepartTreeById(null,null,function(trees){
					ZtreeUtil.initTree("departTree",trees,{
						onClick:function(event, treeId, treeNode){
							alert(1);
						}
					},{
						data:{
							key:{
								name: "text",
				    			url: null
							}
						}
					},{
						context:[]
					});
				});
				
			}
			
			var url = contextPath + "/sys/user/listing.do?" + new Date().getTime(),initIds = [];
			var queryCriteria = { ids: initIds.join(","), rows : 100000 };
			jQuery.post(url, queryCriteria, function(data){
				data = $.evalJSON(data);
			});
			
			
			
			DialogUtils.innerDialog({
			    area: ['800px', '600px'],
			    title: '选择用户',
			    content: $("#selectUser"),
			    btn: ['保存', '取消'],
			    yes: function(index, layero){
			    },cancel: function(index){
			    }
			});
		}
	}
}();